package cn.wlxctech.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WanShen
 * @date 2024年04月23日 21:33
 */
@RestController
@RequestMapping("/article")
public class TestController {
    @GetMapping("/demo")
    public String demo() {
        return "article";
    }

    @GetMapping("/{id}")
    public String demosId(@PathVariable long id) {
        return "articleId===" + id;
    }
}
